﻿using MediatR;
using SmartCity.BasicData.Common;

namespace SmartCity.BasicData.Api.Write.Application.Command.Account
{
    /// <summary>
    /// 因为我们要创建新账号,所以我们需要一个类来封装新账号的字段
    /// 由于这个类是中介者的请求命令类,所以要实现IRequest接口
    /// 控制器只需要知道创建成功,还是失败.因此返回值是一个经典的int
    /// </summary>
    public class CreateAccountCommand:IRequest<ApiResult<int>>
    {
        /// <summary>
        /// 账号
        /// </summary>
        public string AccountName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string AccountPass { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        public string AccountNickname { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        public string AccountPhone { get; set; }
        /// <summary>
        /// 证件
        /// </summary>
        public string AccountCard { get; set; }
        /// <summary>
        /// 角色id
        /// </summary>
        public long RoleId { get; set; }
        /// <summary>
        /// 所属部门id
        /// </summary>
        public long DepartmentId { get; set; }
    }
}
